package com.hb.core.pojo.project.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import com.hb.core.pojo.parent.MPCommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 发票信息
 * </p>
 *
 * @author jinhaolin
 * @since 2022-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_invoice")
public class Invoice extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 发票金额
     */
    private String invoiceAmount;

    /**
     * 发票类型：专票004、普票007、电子普票026、普票（卷式）025、电子专票028
     */
    private String invoiceType;

    /**
     * 购方单位名称
     */
    private String purchaserName;

    /**
     * 购方单位识别号
     */
    private String purchaserIdentification;

    /**
     * 购方地址
     */
    private String purchaserAddress;

    /**
     * 购方电话
     */
    private String purchaserPhone;

    /**
     * 购方银行账号
     */
    private String purchaserBankAccount;

    /**
     * 申请提交时间
     */
    private LocalDateTime submitTime;

    /**
     * 开票成功标识
     */
    private Integer invoiceSuccessFlag;

    /**
     * 发票代码
     */
    private String invoiceCode;

    /**
     * 发票号码
     */
    private String invoiceNumber;

    /**
     * 开票日期
     */
    private String invoiceTime;

    /**
     * 税控码
     */
    private String controlledTaxCode;

    /**
     * 校验码
     */
    private String checkCode;

    /**
     * 二维码
     */
    private String qrCode;


    /**
     * pdfurl
     */
    private String pdfUrl;
    /**
     * pdfCode
     */
    private String pdfCode;


}
